/**
 * 
 */
package com.wushi.emeeting.model;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * @author grant
 *
 */
//@SuppressWarnings("serial")
@Entity
public class Meeting implements Serializable{
	private Long id;
	private String title;
	private String description;
	private Date startDateTime;
	private Date endDateTime;
	private Set<Document> documents=new HashSet();
		
	
	public Meeting(){
		
	}


	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		if (Meeting.class.isInstance(obj)){
			Meeting objMeeting=(Meeting)obj;
			if (this.id==objMeeting.id){
				return true;
			}
		}
		return false;		
	}


	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return("id:"+id+";title:"+title);
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Date getStartDateTime() {
		return startDateTime;
	}


	public void setStartDateTime(Date startDateTime) {
		this.startDateTime = startDateTime;
	}


	public Date getEndDateTime() {
		return endDateTime;
	}


	public void setEndDateTime(Date endDateTime) {
		this.endDateTime = endDateTime;
	}


	public Set<Document> getDocs() {
		return documents;
	}


	public void setDocs(Set<Document> documents) {
		this.documents = documents;
	}



}
